<html>
<body>
    <a href="alipays://platformapi/startapp?appId=20000238&target=merchant&shopId=2017031200077000000027201582&tableNo=283&codeId=9999999&bizScene=KOUBEI_TABLE_CODEC&chInfo=dfqwegq3&j=detail_service_card">
    alipays://platformapi/startapp?appId=20000238&target=merchant&shopId=2017031200077000000027201582&tableNo=283&codeId=9999999&bizScene=KOUBEI_TABLE_CODEC&chInfo=dfqwegq3&j=detail_service_card
    </a>
</br></br></br>
    <div id="click">clixxxxxxxxxxxxxxxxxxxck</div>

    <script type="text/javascript">
        document.getElementById('click').onclick = function (e) {
            e.stopPropagation();
            e.preventDefault();
            var tradeNo = 'xxxx';
            location.href = `alipays://platformapi/startapp?appId=20000238&target=merchant&shopId=2017031200077000000027201582&tableNo=283&codeId=9999999&bizScene=KOUBEI_TABLE_CODEC&chInfo=dfqwegq3&j=detail_service_card`;
        };
        // if (typeof AlipayJSBridge !== 'undefined') {
        //     AlipayJSBridge.call('hideOptionMenu');
        // } else {
        //     document.addEventListener('AlipayJSBridgeReady', function () {AlipayJSBridge.call('hideOptionMenu');}, false);
        // }
    </script>
</body>
</html>